﻿import request from '/@/utils/request';
enum Api {
  AddRidge = '/api/ridge/add',
  DeleteRidge = '/api/ridge/delete',
  UpdateRidge = '/api/ridge/update',
  PageRidge = '/api/ridge/page',
  DetailRidge = '/api/ridge/detail',
}

// 增加桥梁桩号
export const addRidge = (params?: any) =>
	request({
		url: Api.AddRidge,
		method: 'post',
		data: params,
	});

// 删除桥梁桩号
export const deleteRidge = (params?: any) => 
	request({
			url: Api.DeleteRidge,
			method: 'post',
			data: params,
		});

// 编辑桥梁桩号
export const updateRidge = (params?: any) => 
	request({
			url: Api.UpdateRidge,
			method: 'post',
			data: params,
		});

// 分页查询桥梁桩号
export const pageRidge = (params?: any) => 
	request({
			url: Api.PageRidge,
			method: 'post',
			data: params,
		});

// 详情桥梁桩号
export const detailRidge = (id: any) => 
	request({
			url: Api.DetailRidge,
			method: 'get',
			data: { id },
		});


